const webpack = require("webpack")

module.exports = {
    mode: "development",
    devtool: "source-map",
    plugins:[

        new webpack.DefinePlugin({
            PI: `Math.PI`, // const PI = Math.PI
            VERSION: `"1.0.0"`, // PI = Math.PI
            DOMIN: JSON.stringify("zfc")
        }),

        new webpack.BannerPlugin({
            banner:`name:[name]
                hash:[hash]
                auther: tianmengzhe
                版本：1.0.0
                `
        }),

        new webpack.ProvidePlugin({
            $: 'jquery',
            _: 'lodash'
        })
    ]
}